import type { App, Plugin } from "vue";
import Button from "./button";
import Icon from "./icon-component";
import Checkbox from "./checkbox";

const components: Record<string, Plugin> = {
    Button,
    Icon,
    Checkbox
};

const install = (app: App) => {
  for (const key of Object.keys(components)) {
    app.use(components[key]);
  }
};

const HiDesignVue = {
  ...components,
  install,
};

export default HiDesignVue;